
#include <iostream>
#include <vector>
#include <string>
#include "targetParser.h"
using namespace std;

int main(void) {
	try {
		string s = "PRxINT:=-2*3-4+(3*7-765);#";//"a := b + c.b := 3.c := 5.PRINT d.PRINT a.b := 8.PRINT a.RESET.PRINT a.#";
		cout << s << endl;
		TTerm t = match_myfile(s);
		cout << s << endl;
		if (s.length() == 0) cout << "success" << endl;
		else cout << "fail" << endl;
	}
	catch (...) {
		cout << "fail" << endl;
	}
	return 0;
}
